function last(arr){ return arr.sort((a, b) => a.charCodeAt(a.length - 1) - b.charCodeAt(b.length - 1)); }